BENCH_DIR="sysbench-1.0.20"
WGET_URL="https://ostester.oss-cn-hangzhou.aliyuncs.com/benchmarks/sysbench-1.0.20.tar.gz"

if [[ "ubuntu debian uos kylin" =~  $TONE_OS_DISTRO ]];then
    DEP_PKG_LIST="vim make automake libtool pkg-config libaio-dev"
else
    DEP_PKG_LIST="vim make automake libtool pkgconfig libaio-devel"
fi

fetch()
{
    wget_download ${WGET_URL}
}

build() {
    tar -zxf $(basename ${WGET_URL})
    cd ${BENCH_DIR}
    ./autogen.sh
    ./configure --prefix=$TONE_BM_RUN_DIR --without-mysql
    make
}

install() {
    make install
}
